package com.skong.scd.scdbizsdemoserver.member.web;


import com.skong.scd.member.entity.Member;
import com.skong.scd.scdbizsdemoserver.member.service.IMemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 会员表 前端控制器
 * </p>
 *
 * @author tangjf
 * @since 2018-03-28
 */
@RestController
@RequestMapping("/member")
public class MemberController {

    @Autowired
    private IMemberService memberService;

    @GetMapping("/members")
    public List<Member> getMembers() {
        return this.memberService.getMembers();
    }
}

